package ahblue.cn.tanzi.jmessage.im.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;

import ahblue.cn.tanzi.R;
import ahblue.cn.tanzi.jmessage.im.base.BaseActivity;
import ahblue.cn.tanzi.jmessage.im.ui.fragment.MeFragment;

/**
 * Created by fengdongfei on 2018/12/4.
 */

public class SettingActivity extends BaseActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        MeFragment me = new MeFragment();
        switchFragment(me);
    }

    public void switchFragment(Fragment fragment) {
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
//        transaction.setCustomAnimations(anim_in, anim_out);
        transaction.replace(R.id.contntain, fragment);
        transaction.commitAllowingStateLoss();
    }

}
